"""
演示面向对象类中的成员方法定义是使用
"""

# 定义一个带有成员方法的类
class Student:
    name = None     # 表示学生姓名

    def say_hi(self):
        print(f"大家好呀，我是{self.name}，欢迎大家多多关照")

    def say_hi2(self, msg):
        print(f"大家好，我是{self.name}，{msg}")


stu1 = Student()
stu1.name = "张三"
stu1.say_hi()
stu1.say_hi2("我是个傻逼")

stu2 = Student()
stu2.name = "李四"
stu2.say_hi()

stu3 = Student()
stu3.name = "王五"
stu3.say_hi()








